home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
utility
/
pock51.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1997-07-26
|
3KB
|
113 lines
echo off
cls
echo.
echo PocketD/PocketD Plus installation.
echo.
echo This will install for DOS, Windows DOS box and optionally for Win 3.x
echo See INSTALL.TXT for extra installation information for Windows.
if not exist newp.bat goto proceed
D /Yny/ /'//@t&RInstallation has already been run before. Run again?&w'
if errorlevel 2 goto proceed
echo Installation Aborted...
echo.
goto exit2
:proceed
D /Yny/ /'//@t&RDo you want proceed with installation ?'
if errorlevel 2 goto ok
:ABORT
echo Install aborted...
echo.
goto exit2
:ok
if exist newp.bat del newp.bat
if exist install.bat goto START
echo ERROR! The INSTALL program must be run from the installation directory
goto exit2
:START
D /I~/.w :path + d.hlp [//$TPocket has previously been installed in $l$2p$B//]
if not errorlevel 1 goto new
D /Y12/ /'/@t&WI have found an existing PocketD installation//.@t1. Create new installation, or/@t2. Overwrite old//@t?&w'
if errorlevel 2 goto ovr
if not errorlevel 1 goto ABORT
:new
D /Y12/ /'@t&WInstall://@t1. In current directory, or/@t2. C:\POCKETD\//@t?&w'
if errorlevel 2 goto to_c
if errorlevel 1 goto exist
goto ABORT
:to_c
d /I /ccl c:\PockD
c:
cd \
if not exist PockD\*.* md PockD
cd PockD
:exist
D /I~/.w [PATH=$l$2r$B;%%PATH%%//] >newp.bat
echo.
echo Old path:
echo %PATH%
echo.
echo New path will be:
D /I/~?[$l$2r$B;%PATH%]
D /Yny/ /'/@t&GOK to modify AUTOEXEC.BAT to include path ?&w'
if not errorlevel 1 goto ABORT
if errorlevel 2 goto MODAUTO
echo AUTOEXEC.BAT not modified. You must edit this manually.
goto WIN
:ovr
D /I /.w :path + d.hlp [d /I /ccl $l$r/.w//$l//cd $2r$B]R~
:ovr2
:MODAUTO
if exist c:\autoexec.bat goto CONT
ECHO.
ECHO C:\AUTOEXEC.BAT not found
ECHO.
goto WIN
:CONT
if exist newp.bat type NEWP.BAT>>c:\autoexec.bat
:WIN
D /Yny/ /'/@t&WDo you want to install for Windows (3.x@/95) ?&w'
if not errorlevel 1 goto ABORT
if errorlevel 2 goto WINOK
echo.
echo Windows installation skipped
echo.
goto exit
:WINOK
D /Yny/ /'@t&WAre you running Windows 3.x@/3.xx ?&w'
if not errorlevel 1 goto ABORT
if errorlevel 2 goto WIN3
echo.
echo DOS and Windows DOS Box Installation complete...
echo.
echo (Not running Windows 3.x/3.xx.)
echo.
D /Y /'@t&RWindows 95&w and &RWindows NT&w requires the user to/@tre-start Windows and click on "&GGROUP.GRP&w" inside'
echo the original install directory complete the installation.
echo.
pause
if exist newp.bat newp
goto exit2
:WIN3
echo Windows 3.x/3.xx install
echo.
WINSTALL GROUP.GRP POCKETD.ICO POCKETD.TXT
:exit
echo.
echo DOS and Windows DOS Box Installation complete...
echo.
echo Re-start Windows to complete the installation
echo.
pause
if exist newp.bat newp
:exit2